import pkg_resources
 
# 查看特定包的版本号
package_name = 'requests'
version = pkg_resources.get_distribution(package_name).version
print(f'{package_name} version: {version}')
 
# 查看所有已安装包的版本号
installed_packages = pkg_resources.working_set
installed_packages_versions = {pkg.project_name: pkg.version for pkg in installed_packages}
print(installed_packages_versions)


# \作为续行符，放在改行末尾，后面不能有空格，
# 将一行分到多行来写，实际上还是一行字符串
# 如： Your task is to determine if the student's solution is correct or not.
# 就是下方第一个backslash反斜杠"\"的作用
prompt = f"""
Your task is to determine if the student's solution \
is correct or not.
To solve the problem do the following:
- First, work out your own solution to the problem including the final total. 
- Then compare your solution to the student's solution \
and evaluate if the student's solution is correct or not. 
Don't decide if the student's solution is correct until 
you have done the problem yourself.
"""

print(prompt)
